Skip to content

[Discover][Traces][Waterfall] Update isSpan logic to work properly with APM data#225602

Merged
iblancof merged 3 commits intoelastic:mainfrom
iblancof:fix-discover-waterfall-flyout-data
Jun 30, 2025
Merged

[Discover][Traces][Waterfall] Update isSpan logic to work properly with APM data#225602
iblancof merged 3 commits intoelastic:mainfrom
iblancof:fix-discover-waterfall-flyout-data

Conversation

@iblancof
Copy link
Copy Markdown
Contributor

@iblancof iblancof commented Jun 27, 2025

Summary

Relates to #214795

This simplifies the logic used to determine whether a document is a span or a transaction in the waterfall view, aligning it with the changes we recently made in the profile enablement logic.

It also fixes an issue when checking for APM data: we were comparing an array (returned by ES) with a string, which caused APM spans and transactions to always be treated as transactions.

Before After
APM Screenshot 2025-06-27 at 11 03 28 Screenshot 2025-06-27 at 11 01 53
Processed OTel Screenshot 2025-06-27 at 11 13 40 Screenshot 2025-06-27 at 11 15 38
Non-processed OTel Screenshot 2025-06-27 at 11 47 13 Screenshot 2025-06-27 at 11 46 05

@iblancof iblancof self-assigned this Jun 27, 2025
@iblancof iblancof requested a review from a team June 27, 2025 10:01
@iblancof iblancof added release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. backport:version Backport to applied version labels v9.1.0 v8.19.0 labels Jun 27, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@iblancof iblancof changed the title [Discover][Waterfall] Update isSpan logic to work properly with APM data [Discover][Traces][Waterfall] Update isSpan logic to work properly with APM data Jun 27, 2025
@iblancof iblancof added the bug Fixes for quality problems that affect the customer experience label Jun 27, 2025
Copy link
Copy Markdown
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iblancof iblancof enabled auto-merge (squash) June 30, 2025 06:49
@iblancof iblancof merged commit 7e58bfc into elastic:main Jun 30, 2025
10 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
unifiedDocViewer 222.8KB 222.8KB -13.0B

cc @iblancof

@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/15968026835

@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/15968037393

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 30, 2025
…th APM data (elastic#225602)

## Summary

Relates to elastic#214795

This simplifies the logic used to determine whether a document is a span
or a transaction in the waterfall view, aligning it with the [changes we
recently made in the profile enablement
logic](elastic@2e02c0c).

It also fixes an issue when checking for APM data: we were comparing an
array (returned by ES) with a string, which caused APM spans and
transactions to always be treated as transactions.

||Before|After|
|-|-|-|
|APM|❌![Screenshot 2025-06-27 at 11 03
28](https://github.com/user-attachments/assets/26c0bbd0-23ef-468c-b6b8-7dc5a3fdc574)|✅![Screenshot
2025-06-27 at 11 01
53](https://github.com/user-attachments/assets/0061bf7b-0670-473e-b758-b2dde1f83ade)|
|Processed OTel|✅![Screenshot 2025-06-27 at 11 13
40](https://github.com/user-attachments/assets/7c549089-7f5f-461f-8f16-ca7dbd2868f8)|✅![Screenshot
2025-06-27 at 11 15
38](https://github.com/user-attachments/assets/d84e8d7b-a1ef-45e5-9053-c6fb0430f6f0)|
|Non-processed OTel|✅![Screenshot 2025-06-27 at 11 47
13](https://github.com/user-attachments/assets/a8d60afa-0fcf-4964-bf02-392a08aa069b)|✅![Screenshot
2025-06-27 at 11 46
05](https://github.com/user-attachments/assets/82a0100c-2f1a-4ce4-90c6-5cb5cfc26bd1)|

(cherry picked from commit 7e58bfc)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 30, 2025
…th APM data (elastic#225602)

## Summary

Relates to elastic#214795

This simplifies the logic used to determine whether a document is a span
or a transaction in the waterfall view, aligning it with the [changes we
recently made in the profile enablement
logic](elastic@2e02c0c).

It also fixes an issue when checking for APM data: we were comparing an
array (returned by ES) with a string, which caused APM spans and
transactions to always be treated as transactions.

||Before|After|
|-|-|-|
|APM|❌![Screenshot 2025-06-27 at 11 03
28](https://github.com/user-attachments/assets/26c0bbd0-23ef-468c-b6b8-7dc5a3fdc574)|✅![Screenshot
2025-06-27 at 11 01
53](https://github.com/user-attachments/assets/0061bf7b-0670-473e-b758-b2dde1f83ade)|
|Processed OTel|✅![Screenshot 2025-06-27 at 11 13
40](https://github.com/user-attachments/assets/7c549089-7f5f-461f-8f16-ca7dbd2868f8)|✅![Screenshot
2025-06-27 at 11 15
38](https://github.com/user-attachments/assets/d84e8d7b-a1ef-45e5-9053-c6fb0430f6f0)|
|Non-processed OTel|✅![Screenshot 2025-06-27 at 11 47
13](https://github.com/user-attachments/assets/a8d60afa-0fcf-4964-bf02-392a08aa069b)|✅![Screenshot
2025-06-27 at 11 46
05](https://github.com/user-attachments/assets/82a0100c-2f1a-4ce4-90c6-5cb5cfc26bd1)|

(cherry picked from commit 7e58bfc)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 30, 2025
…th APM data (elastic#225602)

## Summary

Relates to elastic#214795

This simplifies the logic used to determine whether a document is a span
or a transaction in the waterfall view, aligning it with the [changes we
recently made in the profile enablement
logic](elastic@2e02c0c).

It also fixes an issue when checking for APM data: we were comparing an
array (returned by ES) with a string, which caused APM spans and
transactions to always be treated as transactions.

||Before|After|
|-|-|-|
|APM|❌![Screenshot 2025-06-27 at 11 03
28](https://github.com/user-attachments/assets/26c0bbd0-23ef-468c-b6b8-7dc5a3fdc574)|✅![Screenshot
2025-06-27 at 11 01
53](https://github.com/user-attachments/assets/0061bf7b-0670-473e-b758-b2dde1f83ade)|
|Processed OTel|✅![Screenshot 2025-06-27 at 11 13
40](https://github.com/user-attachments/assets/7c549089-7f5f-461f-8f16-ca7dbd2868f8)|✅![Screenshot
2025-06-27 at 11 15
38](https://github.com/user-attachments/assets/d84e8d7b-a1ef-45e5-9053-c6fb0430f6f0)|
|Non-processed OTel|✅![Screenshot 2025-06-27 at 11 47
13](https://github.com/user-attachments/assets/a8d60afa-0fcf-4964-bf02-392a08aa069b)|✅![Screenshot
2025-06-27 at 11 46
05](https://github.com/user-attachments/assets/82a0100c-2f1a-4ce4-90c6-5cb5cfc26bd1)|

(cherry picked from commit 7e58bfc)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 30, 2025
…th APM data (elastic#225602)

## Summary

Relates to elastic#214795

This simplifies the logic used to determine whether a document is a span
or a transaction in the waterfall view, aligning it with the [changes we
recently made in the profile enablement
logic](elastic@2e02c0c).

It also fixes an issue when checking for APM data: we were comparing an
array (returned by ES) with a string, which caused APM spans and
transactions to always be treated as transactions.

||Before|After|
|-|-|-|
|APM|❌![Screenshot 2025-06-27 at 11 03
28](https://github.com/user-attachments/assets/26c0bbd0-23ef-468c-b6b8-7dc5a3fdc574)|✅![Screenshot
2025-06-27 at 11 01
53](https://github.com/user-attachments/assets/0061bf7b-0670-473e-b758-b2dde1f83ade)|
|Processed OTel|✅![Screenshot 2025-06-27 at 11 13
40](https://github.com/user-attachments/assets/7c549089-7f5f-461f-8f16-ca7dbd2868f8)|✅![Screenshot
2025-06-27 at 11 15
38](https://github.com/user-attachments/assets/d84e8d7b-a1ef-45e5-9053-c6fb0430f6f0)|
|Non-processed OTel|✅![Screenshot 2025-06-27 at 11 47
13](https://github.com/user-attachments/assets/a8d60afa-0fcf-4964-bf02-392a08aa069b)|✅![Screenshot
2025-06-27 at 11 46
05](https://github.com/user-attachments/assets/82a0100c-2f1a-4ce4-90c6-5cb5cfc26bd1)|

(cherry picked from commit 7e58bfc)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jun 30, 2025
…rly with APM data (#225602) (#225769)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Discover][Traces][Waterfall] Update isSpan logic to work properly
with APM data (#225602)](#225602)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Irene
Blanco","email":"irene.blanco@elastic.co"},"sourceCommit":{"committedDate":"2025-06-30T08:36:41Z","message":"[Discover][Traces][Waterfall]
Update isSpan logic to work properly with APM data (#225602)\n\n##
Summary\n\nRelates to
https://github.com/elastic/kibana/issues/214795\n\nThis simplifies the
logic used to determine whether a document is a span\nor a transaction
in the waterfall view, aligning it with the [changes we\nrecently made
in the profile
enablement\nlogic](https://github.com/elastic/kibana/pull/224697/commits/2e02c0cf6387e5e59bab2272f639f582ee4fca64).\n\nIt
also fixes an issue when checking for APM data: we were comparing
an\narray (returned by ES) with a string, which caused APM spans
and\ntransactions to always be treated as
transactions.\n\n||Before|After|\n|-|-|-|\n|APM|❌![Screenshot 2025-06-27
at 11
03\n28](https://github.com/user-attachments/assets/26c0bbd0-23ef-468c-b6b8-7dc5a3fdc574)|✅![Screenshot\n2025-06-27
at 11
01\n53](https://github.com/user-attachments/assets/0061bf7b-0670-473e-b758-b2dde1f83ade)|\n|Processed
OTel|✅![Screenshot 2025-06-27 at 11
13\n40](https://github.com/user-attachments/assets/7c549089-7f5f-461f-8f16-ca7dbd2868f8)|✅![Screenshot\n2025-06-27
at 11
15\n38](https://github.com/user-attachments/assets/d84e8d7b-a1ef-45e5-9053-c6fb0430f6f0)|\n|Non-processed
OTel|✅![Screenshot 2025-06-27 at 11
47\n13](https://github.com/user-attachments/assets/a8d60afa-0fcf-4964-bf02-392a08aa069b)|✅![Screenshot\n2025-06-27
at 11
46\n05](https://github.com/user-attachments/assets/82a0100c-2f1a-4ce4-90c6-5cb5cfc26bd1)|","sha":"7e58bfc865025107768016c4067ddab9b048fca6","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:obs-ux-infra_services","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Discover][Traces][Waterfall]
Update isSpan logic to work properly with APM
data","number":225602,"url":"https://github.com/elastic/kibana/pull/225602","mergeCommit":{"message":"[Discover][Traces][Waterfall]
Update isSpan logic to work properly with APM data (#225602)\n\n##
Summary\n\nRelates to
https://github.com/elastic/kibana/issues/214795\n\nThis simplifies the
logic used to determine whether a document is a span\nor a transaction
in the waterfall view, aligning it with the [changes we\nrecently made
in the profile
enablement\nlogic](https://github.com/elastic/kibana/pull/224697/commits/2e02c0cf6387e5e59bab2272f639f582ee4fca64).\n\nIt
also fixes an issue when checking for APM data: we were comparing
an\narray (returned by ES) with a string, which caused APM spans
and\ntransactions to always be treated as
transactions.\n\n||Before|After|\n|-|-|-|\n|APM|❌![Screenshot 2025-06-27
at 11
03\n28](https://github.com/user-attachments/assets/26c0bbd0-23ef-468c-b6b8-7dc5a3fdc574)|✅![Screenshot\n2025-06-27
at 11
01\n53](https://github.com/user-attachments/assets/0061bf7b-0670-473e-b758-b2dde1f83ade)|\n|Processed
OTel|✅![Screenshot 2025-06-27 at 11
13\n40](https://github.com/user-attachments/assets/7c549089-7f5f-461f-8f16-ca7dbd2868f8)|✅![Screenshot\n2025-06-27
at 11
15\n38](https://github.com/user-attachments/assets/d84e8d7b-a1ef-45e5-9053-c6fb0430f6f0)|\n|Non-processed
OTel|✅![Screenshot 2025-06-27 at 11
47\n13](https://github.com/user-attachments/assets/a8d60afa-0fcf-4964-bf02-392a08aa069b)|✅![Screenshot\n2025-06-27
at 11
46\n05](https://github.com/user-attachments/assets/82a0100c-2f1a-4ce4-90c6-5cb5cfc26bd1)|","sha":"7e58bfc865025107768016c4067ddab9b048fca6"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225602","number":225602,"mergeCommit":{"message":"[Discover][Traces][Waterfall]
Update isSpan logic to work properly with APM data (#225602)\n\n##
Summary\n\nRelates to
https://github.com/elastic/kibana/issues/214795\n\nThis simplifies the
logic used to determine whether a document is a span\nor a transaction
in the waterfall view, aligning it with the [changes we\nrecently made
in the profile
enablement\nlogic](https://github.com/elastic/kibana/pull/224697/commits/2e02c0cf6387e5e59bab2272f639f582ee4fca64).\n\nIt
also fixes an issue when checking for APM data: we were comparing
an\narray (returned by ES) with a string, which caused APM spans
and\ntransactions to always be treated as
transactions.\n\n||Before|After|\n|-|-|-|\n|APM|❌![Screenshot 2025-06-27
at 11
03\n28](https://github.com/user-attachments/assets/26c0bbd0-23ef-468c-b6b8-7dc5a3fdc574)|✅![Screenshot\n2025-06-27
at 11
01\n53](https://github.com/user-attachments/assets/0061bf7b-0670-473e-b758-b2dde1f83ade)|\n|Processed
OTel|✅![Screenshot 2025-06-27 at 11
13\n40](https://github.com/user-attachments/assets/7c549089-7f5f-461f-8f16-ca7dbd2868f8)|✅![Screenshot\n2025-06-27
at 11
15\n38](https://github.com/user-attachments/assets/d84e8d7b-a1ef-45e5-9053-c6fb0430f6f0)|\n|Non-processed
OTel|✅![Screenshot 2025-06-27 at 11
47\n13](https://github.com/user-attachments/assets/a8d60afa-0fcf-4964-bf02-392a08aa069b)|✅![Screenshot\n2025-06-27
at 11
46\n05](https://github.com/user-attachments/assets/82a0100c-2f1a-4ce4-90c6-5cb5cfc26bd1)|","sha":"7e58bfc865025107768016c4067ddab9b048fca6"}}]}]
BACKPORT-->

Co-authored-by: Irene Blanco <irene.blanco@elastic.co>
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 1, 2025
@kibanamachine
Copy link
Copy Markdown
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @iblancof

kibanamachine added a commit that referenced this pull request Jul 1, 2025
…erly with APM data (#225602) (#225768)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Discover][Traces][Waterfall] Update isSpan logic to work properly
with APM data (#225602)](#225602)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Irene
Blanco","email":"irene.blanco@elastic.co"},"sourceCommit":{"committedDate":"2025-06-30T08:36:41Z","message":"[Discover][Traces][Waterfall]
Update isSpan logic to work properly with APM data (#225602)\n\n##
Summary\n\nRelates to
https://github.com/elastic/kibana/issues/214795\n\nThis simplifies the
logic used to determine whether a document is a span\nor a transaction
in the waterfall view, aligning it with the [changes we\nrecently made
in the profile
enablement\nlogic](https://github.com/elastic/kibana/pull/224697/commits/2e02c0cf6387e5e59bab2272f639f582ee4fca64).\n\nIt
also fixes an issue when checking for APM data: we were comparing
an\narray (returned by ES) with a string, which caused APM spans
and\ntransactions to always be treated as
transactions.\n\n||Before|After|\n|-|-|-|\n|APM|❌![Screenshot 2025-06-27
at 11
03\n28](https://github.com/user-attachments/assets/26c0bbd0-23ef-468c-b6b8-7dc5a3fdc574)|✅![Screenshot\n2025-06-27
at 11
01\n53](https://github.com/user-attachments/assets/0061bf7b-0670-473e-b758-b2dde1f83ade)|\n|Processed
OTel|✅![Screenshot 2025-06-27 at 11
13\n40](https://github.com/user-attachments/assets/7c549089-7f5f-461f-8f16-ca7dbd2868f8)|✅![Screenshot\n2025-06-27
at 11
15\n38](https://github.com/user-attachments/assets/d84e8d7b-a1ef-45e5-9053-c6fb0430f6f0)|\n|Non-processed
OTel|✅![Screenshot 2025-06-27 at 11
47\n13](https://github.com/user-attachments/assets/a8d60afa-0fcf-4964-bf02-392a08aa069b)|✅![Screenshot\n2025-06-27
at 11
46\n05](https://github.com/user-attachments/assets/82a0100c-2f1a-4ce4-90c6-5cb5cfc26bd1)|","sha":"7e58bfc865025107768016c4067ddab9b048fca6","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:obs-ux-infra_services","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Discover][Traces][Waterfall]
Update isSpan logic to work properly with APM
data","number":225602,"url":"https://github.com/elastic/kibana/pull/225602","mergeCommit":{"message":"[Discover][Traces][Waterfall]
Update isSpan logic to work properly with APM data (#225602)\n\n##
Summary\n\nRelates to
https://github.com/elastic/kibana/issues/214795\n\nThis simplifies the
logic used to determine whether a document is a span\nor a transaction
in the waterfall view, aligning it with the [changes we\nrecently made
in the profile
enablement\nlogic](https://github.com/elastic/kibana/pull/224697/commits/2e02c0cf6387e5e59bab2272f639f582ee4fca64).\n\nIt
also fixes an issue when checking for APM data: we were comparing
an\narray (returned by ES) with a string, which caused APM spans
and\ntransactions to always be treated as
transactions.\n\n||Before|After|\n|-|-|-|\n|APM|❌![Screenshot 2025-06-27
at 11
03\n28](https://github.com/user-attachments/assets/26c0bbd0-23ef-468c-b6b8-7dc5a3fdc574)|✅![Screenshot\n2025-06-27
at 11
01\n53](https://github.com/user-attachments/assets/0061bf7b-0670-473e-b758-b2dde1f83ade)|\n|Processed
OTel|✅![Screenshot 2025-06-27 at 11
13\n40](https://github.com/user-attachments/assets/7c549089-7f5f-461f-8f16-ca7dbd2868f8)|✅![Screenshot\n2025-06-27
at 11
15\n38](https://github.com/user-attachments/assets/d84e8d7b-a1ef-45e5-9053-c6fb0430f6f0)|\n|Non-processed
OTel|✅![Screenshot 2025-06-27 at 11
47\n13](https://github.com/user-attachments/assets/a8d60afa-0fcf-4964-bf02-392a08aa069b)|✅![Screenshot\n2025-06-27
at 11
46\n05](https://github.com/user-attachments/assets/82a0100c-2f1a-4ce4-90c6-5cb5cfc26bd1)|","sha":"7e58bfc865025107768016c4067ddab9b048fca6"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225602","number":225602,"mergeCommit":{"message":"[Discover][Traces][Waterfall]
Update isSpan logic to work properly with APM data (#225602)\n\n##
Summary\n\nRelates to
https://github.com/elastic/kibana/issues/214795\n\nThis simplifies the
logic used to determine whether a document is a span\nor a transaction
in the waterfall view, aligning it with the [changes we\nrecently made
in the profile
enablement\nlogic](https://github.com/elastic/kibana/pull/224697/commits/2e02c0cf6387e5e59bab2272f639f582ee4fca64).\n\nIt
also fixes an issue when checking for APM data: we were comparing
an\narray (returned by ES) with a string, which caused APM spans
and\ntransactions to always be treated as
transactions.\n\n||Before|After|\n|-|-|-|\n|APM|❌![Screenshot 2025-06-27
at 11
03\n28](https://github.com/user-attachments/assets/26c0bbd0-23ef-468c-b6b8-7dc5a3fdc574)|✅![Screenshot\n2025-06-27
at 11
01\n53](https://github.com/user-attachments/assets/0061bf7b-0670-473e-b758-b2dde1f83ade)|\n|Processed
OTel|✅![Screenshot 2025-06-27 at 11
13\n40](https://github.com/user-attachments/assets/7c549089-7f5f-461f-8f16-ca7dbd2868f8)|✅![Screenshot\n2025-06-27
at 11
15\n38](https://github.com/user-attachments/assets/d84e8d7b-a1ef-45e5-9053-c6fb0430f6f0)|\n|Non-processed
OTel|✅![Screenshot 2025-06-27 at 11
47\n13](https://github.com/user-attachments/assets/a8d60afa-0fcf-4964-bf02-392a08aa069b)|✅![Screenshot\n2025-06-27
at 11
46\n05](https://github.com/user-attachments/assets/82a0100c-2f1a-4ce4-90c6-5cb5cfc26bd1)|","sha":"7e58bfc865025107768016c4067ddab9b048fca6"}}]}]
BACKPORT-->

Co-authored-by: Irene Blanco <irene.blanco@elastic.co>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 1, 2025
@iblancof iblancof deleted the fix-discover-waterfall-flyout-data branch July 7, 2025 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. v8.19.0 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants